SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{29a58e097ba183d0c63ce6dc290fb6bea0fd40da4208569d17d047a7ef1d3cad}Santa{29a58e097ba183d0c63ce6dc290fb6bea0fd40da4208569d17d047a7ef1d3cad}' OR prCity = 'Santa' OR prZip = 'Santa' OR prStreet LIKE '{29a58e097ba183d0c63ce6dc290fb6bea0fd40da4208569d17d047a7ef1d3cad}Santa{29a58e097ba183d0c63ce6dc290fb6bea0fd40da4208569d17d047a7ef1d3cad}' OR prCountry = 'Santa') AND (prLocation LIKE '{29a58e097ba183d0c63ce6dc290fb6bea0fd40da4208569d17d047a7ef1d3cad}Ponsa{29a58e097ba183d0c63ce6dc290fb6bea0fd40da4208569d17d047a7ef1d3cad}' OR prCity = 'Ponsa' OR prZip = 'Ponsa' OR prStreet LIKE '{29a58e097ba183d0c63ce6dc290fb6bea0fd40da4208569d17d047a7ef1d3cad}Ponsa{29a58e097ba183d0c63ce6dc290fb6bea0fd40da4208569d17d047a7ef1d3cad}' OR prCountry = 'Ponsa') AND (prLocation LIKE '{29a58e097ba183d0c63ce6dc290fb6bea0fd40da4208569d17d047a7ef1d3cad}Spain{29a58e097ba183d0c63ce6dc290fb6bea0fd40da4208569d17d047a7ef1d3cad}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{29a58e097ba183d0c63ce6dc290fb6bea0fd40da4208569d17d047a7ef1d3cad}Spain{29a58e097ba183d0c63ce6dc290fb6bea0fd40da4208569d17d047a7ef1d3cad}' OR prCountry = 'Spain')